export default () => {
	var obj = {}
	var searchs = location.search
	if (searchs && searchs.indexOf('?') > -1) {
		searchs = searchs.split('?')[1].split('&')
		searchs.forEach(str => {
			if (str && str.indexOf('=') > -1) {
				var arr = str.split('=')
				if (arr[0]) {
					obj[arr[0]] = arr[1]
				}
			}
		})
	}
	return obj
}
